import request from '@/utils/request'

// 查询flow参数详情
export function getFlowInfo(parmCode) {
  return request({
    url: '/aitcommon/flow/parminfo',
    method: 'get',
    params: {parmCode}
  })
}

// 查询flow参数清单
export function getParmList(flowCode) {
  return request({
    url: '/aitcommon/flow/parmlist',
    method: 'get',
    params: {flowCode}
  })
}

// 保存flow源文件
export function saveFlowFile(filePath,fileText) {
  return request({
    url: '/aitcommon/flow/filesave',
    method: 'post',
    data: {filePath,fileText}
  })
}